#include <stdio.h>

int main(void)
{
	//char score;
	//scanf("%c", &score);
	int score;
	scanf("%d", &score);

	switch(score) {
	case 'A':
		printf("Excellent\n");
		break;
	case 'B':
		printf("Good\n");
		break;
	case 'C':
		printf("Pass\n");
		break;
	default:
		printf("Fail\n");
		break;
	}

	return 0;
}
